package com.bj.dljd.convent;

import cn.hutool.core.util.StrUtil;
import com.bj.dljd.domain.UserInfo;
import com.bj.dljd.domain.UserPayInfo;
import com.bj.dljd.models.vo.UserInfoVo;
import com.bj.dljd.models.vo.UserPayInfoVo;
import org.mapstruct.*;

import java.util.List;

@Mapper(componentModel = MappingConstants.ComponentModel.SPRING,
        uses = {CommonFun.class})
public interface ConvertUserConvert {

    List<UserInfoVo> convertListUserInfoVo(List<UserInfo> userInfoList);
    List<UserPayInfoVo> mapUserPayInfoVo(List<UserPayInfo> userInfoList);


    @Mappings({
            @Mapping(source = "createTime", target = "createTime", dateFormat = "yyyy-MM-dd HH:mm:ss"),
            @Mapping(source = "status", target = "status",qualifiedByName = "convertStatus")
    })
    UserInfoVo mapUserInfoVo(UserInfo userInfo);




}
